const Config = require('./config');

const Constant = require('./constants');

function makeURL(module, action) {
    return `${Config.domain}/${module}/${action}`;
}



module.exports = {
  
    // 获取流量主配置
    JIANGQIE_SETTING_AD: makeURL('advert', 'adConfig'),
    // 获取展示流量主配置
    JIANGQIE_SETTING_AD_CONFIG: makeURL('advert', 'getAdPageList'),
    // 获取分享配置
    JIANGQIE_SETTING_SHARE: makeURL('config', 'setting_share'),
    // 获取分享配置是否开始随机语录
    JIANGQIE_SETTING_SHARE_IS_RANDOM: makeURL('config', 'setting_share_quotation'),
    // 获取分享随机语录
    SHARE_RANDOM_QUOTATION: makeURL('quotations', 'getRanQuotation'),

    /**
     * 获取图片列表
     */
    JIANGQIE_POSTS_IMAGES: makeURL('platform', 'wallpaper'),

    /**
     * [我的] 浏览，点赞，收藏
     */
    JIANGQIE_POSTS_MY: makeURL('p/favorite', 'getMyDataNew'),


};
